package com.cos.emp.services.impl;

import com.cos.emp.dao.DeptMapper;
import com.cos.emp.entity.Dept;
import com.cos.emp.services.DeptServices;
import com.cos.emp.util.MybatisUtils;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/9/23 17:17
 * @description:
 */
public class DeptServicesImpl implements DeptServices {
    @Override
    public List<Dept> getAll() {
        DeptMapper mapper = MybatisUtils.getMapper(DeptMapper.class);
        List<Dept> dl= mapper.getAll();
        return dl;
    }
}
